package com.local.mapper;

import com.local.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author lou ke
 * @version 1.0
 * @date 2020/4/18 21:28
 */
@Mapper    // 表示了这是一个 mybatis 的 mapper 类
@Repository
public interface UserMapper {

    List<User> queryUserList();

    User queryUserById(Integer id);

    int addUser(User user);

    int updateUser(User user);

    int deleteUser(Integer id);
}
